package org.duang.http.common;

import java.net.URI;
import java.util.HashMap;
import java.util.Map;

import org.duang.http.core.enums.HttpMethod;

public class RequestMessage extends HttpMessage {
	
	private HttpMethod method = HttpMethod.GET;		// default Get Request
	private URI url;										// 请求的站点域名及路径
	private Map<String, Object> params = new HashMap<String,Object>();  //提交的参数

	public URI getUrl() {
		return url;
	}

	public void setUrl(URI url) {
		this.url = url;
	}

	public HttpMethod getMethod() {
		return method;
	}

	public void setMethod(HttpMethod method) {
		this.method = method;
	}
	
	public Map<String, Object> getParams() {
		return params;
	}

	public void setParams(Map<String, Object> params) {
		this.params = params;
	}
}
